home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Sound
/
juno-librarian-108
/
JUNO Librarian 1.0.8
/
Sample Scripts
/
21 Change DCO TRI ON⁄OFF copy
< prev
next >
Wrap
Text File
|
1994-07-11
|
403b
|
17 lines
tell application "JUNO Librarian"
activate -- if needed
set x to Parameter 16 of Window "Sample"
set y to (round (x ÷ 16) rounding down)
set y to y * 16
set z to x - y -- DCO range, PWM on/off
set y to (round (y ÷ 32) rounding down)
set y to y * 32
set x to y + z
-- select 1 of 2
set x to x + 0 -- TRI OFF
-- set x to x + 16 -- TRI ON
copy x to Parameter 16 of Window "Sample"
end tell